﻿using System;
using System.Collections.Generic;
using System.Text;

namespace GroupChat2013.Logic.Interface
{
    /// <summary>
    /// 聊天接口
    /// </summary>
    public interface IChat
    {
        /// <summary>
        /// 更新会话
        /// </summary>
        void UpdateChat();

        /// <summary>
        /// 显示
        /// </summary>
        void Show();

        /// <summary>
        /// 激活
        /// </summary>
        void Activate();

        /// <summary>
        /// 链接成功
        /// </summary>
        void ConnectionSucc();

        /// <summary>
        /// 连接失败
        /// </summary>
        void ConnectionFail();
    }

    /// <summary>
    /// 群聊接口
    /// </summary>
    public interface IGroupChat
    {
        /// <summary>
        /// 更新群内用户列表
        /// </summary>
        void UpdateUserList();

        /// <summary>
        /// 更新群公告
        /// </summary>
        void UpdateNotice();

        /// <summary>
        /// 更新群明显
        /// </summary>
        void UpdateDetail();
        
        /// <summary>
        /// 更新用户在线状态
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="status">1在线 0 离线</param>
        void UpdateUserStatus(string userId, int status);
    }
}
